package idea.mybatis.db.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author idea
 * @since 2017-01-01
 */
@TableName("tl_main")
public class TlMain extends Model<TlMain> {

    private static final long serialVersionUID = 1L;

	@TableId(value="main_id", type= IdType.AUTO)
	private Integer mainId;
	@TableField("main_name")
	private String mainName;
	@TableField("main_date")
	private Date mainDate;
	@TableField("main_desc")
	private String mainDesc;


	public Integer getMainId() {
		return mainId;
	}

	public void setMainId(Integer mainId) {
		this.mainId = mainId;
	}

	public String getMainName() {
		return mainName;
	}

	public void setMainName(String mainName) {
		this.mainName = mainName;
	}

	public Date getMainDate() {
		return mainDate;
	}

	public void setMainDate(Date mainDate) {
		this.mainDate = mainDate;
	}

	public String getMainDesc() {
		return mainDesc;
	}

	public void setMainDesc(String mainDesc) {
		this.mainDesc = mainDesc;
	}

	public static final String MAIN_ID = "main_id";

	public static final String MAIN_NAME = "main_name";

	public static final String MAIN_DATE = "main_date";

	public static final String MAIN_DESC = "main_desc";

	@Override
	protected Serializable pkVal() {
		return this.mainId;
	}

}
